package com.facebook.commands.publish 
{
	import com.facebook.commands.FacebookCall;
	import com.facebook.commands.query.Query;
	import com.facebook.utils.FacebookPostUtils;

	/**
	 * @author Ben Smith
	 */
	public class Publish  extends FacebookCall 
	{

		static public const METHOD : String = "stream.publish"
		static public const FUNCTION_CALL : String = "FB.ui"

		
	

		public function Publish()
		{
			method = toString()
		
		}

		override public function toString() : String
		{
			return Publish.METHOD
		}
		
		
		
		override public function makeCall(format:String="JSON"):FacebookCall{
		
			super.makeCall(format)
			FacebookPostUtils.registerCall(this);
	
			return this
		}
		
		override public function quickTrace():void{
			_parser.quickTrace(result.result)
		}
		
		
	
	}
}
